<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="cfn" uri="http://francetelecom.com/cfn"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<%-- The specific styles for this page --%>
<link rel="stylesheet" href="${resFolder}css/exception.css" type="text/css"/>

<c:set var="labelCodeSuffix" value="${cfn:getMsgKey(param.excode)}"/>
<div class="error">
	<p class="errortitle">
    <spring:theme code="exception.${labelCodeSuffix}.title"/>
  </p>
  <p class="errorsum">
    <spring:theme code="exception.${labelCodeSuffix}.sum"/>
  </p>
  <div class="errordetails">

    <spring:theme arguments="${fn:escapeXml(param.exparams)}"
      code="exception.${labelCodeSuffix}.details"/>
  </div>

  <c:url var="backUrl" value='${param.back}'/>
  <jsp:include page="/WEB-INF/jsp/common/cmp/button.jsp">
    <jsp:param name="id" value="submitBt"/>
    <jsp:param name="label" value="exception.back"/>
    <jsp:param name="type" value="button"/>
    <jsp:param name="onclick" value="location='${backUrl}'"/>
  </jsp:include>
</div>

<div id="pageUrl" style="display:none;"><c:url value="/exception.do">
  <c:param name="excode" value="${param.excode}"/>
  <c:param name="exparams" value="${param.exparams}"/>
  <c:param name="back" value="${param.back}"/>
</c:url></div>